I have a universe machine catalog, gonna compute statistics on them now & make sure everything seems sensible.
In [1]:
%matplotlib inline
from matplotlib import pyplot as plt
import seaborn as sns
sns.set()
In [2]:
import numpy as np
In [3]:
from pearce.mocks.kittens import MDPL2, TrainingBox
/home/users/swmclau2/.local/lib/python2.7/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
In [4]:
cat = TrainingBox(0,system = 'sherlock')
In [5]:
cat.load(1.0, particles = True)
In [6]:
cat.halocat.halo_table
Out[6]:
<Table length=10055159>
halo_upid halo_vx halo_y halo_x halo_z halo_vy halo_vz halo_rs halo_rvir halo_mvir halo_id halo_nfw_conc halo_hostid halo_local_density_1 halo_local_density_5 halo_local_density_10 halo_mvir_host_halo
int64 float32 float32 float32 float32 float32 float32 float32 float32 float32 int64 float32 int64 float64 float64 float64 float32
-1 246.87485 102.52383 106.99912 183.05856 37.936943 -535.23517 0.019872999 0.23570101 1036800000000.0 5187094 11.860365 5187094 30.214571227602015 17.725881786859848 6.999709001061133 1036800000000.0
5187174 -974.71326 104.59491 110.74285 177.89935 72.32447 19.520681 0.018565001 0.33848098 3070500000000.0 5187095 18.232208 5187174 70.50066619773804 27.877977719334122 12.539047059454834 19540000000000.0
5187151 -932.22003 105.14327 110.985855 177.40489 615.9403 -1.137215 0.014115 0.327897 2791400000000.0 5187096 23.230394 5187151 40.28609497013602 31.906587216347724 12.206686775951212 838370000000000.0
5187102 713.0239 104.19983 110.667 179.15486 772.3499 269.75558 0.020917999 0.45170498 7297500000000.0 5187097 21.594082 5187102 423.0039971864282 28.5225552388563 11.5218231614589 106310000000000.0
5187178 1496.8752 104.97381 110.18847 179.91116 -675.5206 -17.7335 0.043587003 0.576783 15193000000000.0 5187098 13.232913 5187178 382.7179022162922 27.877977719334122 11.793754302507319 73374000000000.0
5187151 1364.2133 103.91988 110.11275 178.95863 1145.8024 -661.19305 0.053097 0.443322 6898700000000.0 5187099 8.349285 5187151 120.85828491040806 27.79740552939385 11.541966208943968 838370000000000.0
-1 770.9919 102.41203 108.071335 182.7319 1157.6224 -103.78365 0.028978001 0.371739 4067400000000.0 5187100 12.828318 5187100 50.357618712670025 19.981903105187463 7.976646804086931 4067400000000.0
5187178 1365.237 104.34914 110.74132 180.61777 2048.1526 550.4253 0.214767 0.436381 6579700000000.0 5187101 2.031881 5187178 161.14437988054408 29.005988378497932 11.008175450589667 73374000000000.0
5187148 1100.5853 104.63169 111.21566 179.27124 2912.1895 245.31432 0.035836 1.1032081 106310000000000.0 5187102 30.78491 5187148 1107.8676116787406 29.972854657781195 11.57218078017157 150340000000000.0
-1 -121.38994 99.02711 105.870544 187.76155 440.34564 -1587.7352 0.022794 0.33994 3110400000000.0 5187103 14.913573 5187103 20.14304748506801 16.59787112769604 3.575390928599571 3110400000000.0
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
-1 360.65402 787.7205 807.9131 823.8222 126.01348 119.062294 0.012146 0.204576 677910000000.0 5187084 16.843077 5187084 0.0 0.48343313964163215 0.7352212332049822 677910000000.0
-1 154.72903 796.98584 803.2846 833.7656 -94.21632 186.45187 0.017252 0.187076 518400000000.0 5187085 10.843728 5187085 20.14304748506801 1.2085828491040804 0.8862940893429924 518400000000.0
-1 103.847626 799.7953 792.1817 826.944 -90.245514 264.44522 0.025333 0.212303 757660000000.0 5187086 8.380491 5187086 0.0 0.24171656982081607 0.7150781857199142 757660000000.0
-1 120.597015 808.9011 804.5984 789.77905 -345.85385 287.0697 0.016949 0.159123 319020000000.0 5187087 9.388342 5187087 20.14304748506801 0.9668662792832643 0.6949351382348462 319020000000.0
-1 351.06 807.7606 813.7482 792.35474 -460.61057 294.90707 0.016157 0.100241 79754000000.0 5187088 6.204184 5187088 0.0 0.8862940893429924 0.7755073281751182 79754000000.0
-1 399.60214 805.8018 815.9428 790.18463 -455.32162 367.83643 0.012503999 0.212303 757660000000.0 5187089 16.978807 5187089 10.071523742534005 0.7251497094624483 1.1078676116787405 757660000000.0
-1 -3.825646 802.99316 794.1816 796.77747 -193.77182 157.44429 0.009544 0.208511 717790000000.0 5187090 21.847338 5187090 0.0 0.40286094970136016 0.9970808505108664 717790000000.0
-1 -39.194416 796.59906 819.9801 817.6079 -740.96136 503.27197 0.034438998 0.196216 598150000000.0 5187091 5.6974945 5187091 0.0 2.900598837849793 3.504890262401833 598150000000.0
-1 334.18 792.66815 818.57416 816.44604 179.23204 380.19702 0.057549 0.19175501 558280000000.0 5187092 3.3320303 5187092 0.0 1.9337325585665286 3.4545326436891632 558280000000.0
-1 245.128 791.10986 798.86536 801.14343 -208.66121 193.09265 0.035951 0.152196 279140000000.0 5187093 4.233429 5187093 0.0 0.40286094970136016 0.5136477108692342 279140000000.0
In [10]:
from halotools.sim_manager import PtclTableCache
In [11]:
cache = PtclTableCache()
In [15]:
ptcl_vname = cat.version_name + '_particle_%.2f' % (-1 * np.log10(1e-2))
In [18]:
?? cache.matching_log_entry_generator
In [25]:
cat.simname
Out[25]:
'trainingbox'
In [26]:
cat.version_name
Out[26]:
'most_recent_00'
In [19]:
gen0 = cache.matching_log_entry_generator(simname = cat.simname,
version_name = ptcl_vname, redshift = cat.z, dz_tol = 0.1)
In [21]:
entries = list(gen0)
In [24]:
entries[0].fname
Out[24]:
u'/scratch/users/swmclau2/halocats/ptcl_1.00.list.trainingbox_most_recent_00.hdf5'
In [13]:
cache.log
Out[13]:
[<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90029ccb10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90029cc890>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0790>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c07d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0890>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0690>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0710>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0f50>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c06d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c02d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0510>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0210>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0910>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0950>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0990>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c09d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0a10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0a50>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0a90>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0ad0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0b10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0b50>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0b90>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0bd0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0c10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0c50>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0c90>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0cd0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0d10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0d50>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0d90>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0dd0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0e10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0e50>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0e90>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0f10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0ed0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028c0fd0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9050>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9090>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a90d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9110>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9150>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9190>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a91d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9210>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9250>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9290>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a92d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9310>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9350>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9390>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a93d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9410>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9450>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9490>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a94d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9510>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9550>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9590>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a95d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9610>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9650>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9690>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a96d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9710>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9750>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9790>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a97d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9810>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9850>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9890>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a98d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9910>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9950>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9990>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a99d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9a10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9a50>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9a90>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9ad0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9b10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9b50>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9b90>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9bd0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9c10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9c50>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9c90>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9cd0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9d10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9d50>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9d90>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9dd0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9e10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9e50>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9e90>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9ed0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9f10>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9f50>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9f90>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f90028a9fd0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c050>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c090>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c0d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c110>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c150>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c190>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c1d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c210>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c250>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c290>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c2d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c310>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c350>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c390>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c3d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c410>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c450>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c490>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c4d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c510>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c550>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c590>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c5d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c610>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c650>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c690>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c6d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c710>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c750>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c790>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c7d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c810>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c850>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c890>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c8d0>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c910>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c950>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c990>,
<halotools.sim_manager.ptcl_table_cache_log_entry.PtclTableCacheLogEntry at 0x7f900284c9d0>]
In [7]:
cat.halocat.ptcl_table
InvalidCacheLogEntryTraceback (most recent call last)
<ipython-input-7-bad5e4c16504> in <module>()
----> 1 cat.halocat.ptcl_table
/home/users/swmclau2/.local/lib/python2.7/site-packages/halotools-0.7.dev5048-py2.7-linux-x86_64.egg/halotools/sim_manager/cached_halo_catalog.pyc in ptcl_table(self)
630 return self._ptcl_table
631 else:
--> 632 raise InvalidCacheLogEntry(ptcl_log_entry._cache_safety_message)
633
634 def _disallow_catalogs_with_known_bugs(self, simname=sim_defaults.default_simname,
InvalidCacheLogEntry: The particle catalog and/or its associated metadata fail the following tests:
1. The input filename does not exist.
In [ ]:
um_galcat = np.load('/home/users/swmclau2/scratch/UniverseMachine/cut_um_catalog.npy')
In [ ]:
pos = um_galcat['pos'][:, :3]
In [ ]:
rbins = np.logspace(-1.1, 1.6, 19)
rpoints = (rbins[1:] + rbins[:-1])/2.0
Note: make sure the luminosity cut i did makes snese with the min ptcl count I do on the emus
In [ ]:
cat.model.mock.galaxy_table.colnames
In [ ]:
plt.plot(rpoints, xi_gg)
plt.loglog();
In [ ]:
Content source: mclaughlin6464/pearce
Similar notebooks: